package com.yun.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yun.reggie.dto.DishDto;
import com.yun.reggie.entity.Dish;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author xiao
 */
public interface DishService extends IService<Dish> {

    @Transactional
    void addWithFlavors(DishDto dishDto);

    @Transactional
    void updateWithFlavors(DishDto dishDto);

    @Transactional
    void deleteById(Long ids);

    void updateSalesStatus(int status, List<Long> ids);
}
